package com.cz.background.mapper.ey;

import com.cz.background.dto.ey.EnableScheduleDTO;
import com.cz.background.dto.ey.QueryScheduleDTO;
import com.cz.background.entity.ey.EySchedule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface EyScheduleMapper {
    int deleteByPrimaryKey(@Param("doctorCode") String doctorCode, @Param("scheduleDate") String scheduleDate);

    int insert(EySchedule record);

    int insertSelective(EySchedule record);

    EySchedule selectByPrimaryKey(@Param("doctorCode") String doctorCode, @Param("scheduleDate") String scheduleDate);

    int updateByPrimaryKeySelective(EySchedule record);

    int updateByPrimaryKey(EySchedule record);

    List<EySchedule> selectList(@Param("queryScheduleDTO") QueryScheduleDTO queryScheduleDTO);

    int deleteByDoctorCodeAndScheduleDate(EnableScheduleDTO enableScheduleDTO);

    EySchedule findByDoctorCodeAndScheduleDate(EnableScheduleDTO enableScheduleDTO);

    int updateStatusByDoctorCodeAndScheduleDate(@Param("updatedStatus")Integer updatedStatus,@Param("doctorCode")String doctorCode,@Param("scheduleDate")String scheduleDate);

     List<EySchedule> findByStatus(@Param("status")Integer status);


}